package com.mvc.business.regedit;

import com.mvc.business.entity.GoodsForm;
import com.mvc.framework.annotation.Controller;
import com.mvc.framework.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/goods")
public class GoodsController {

	@RequestMapping("/getGoodsPrice")
	public String getGoodsPrice(HttpServletRequest request, GoodsForm goodsForm, Double price, int count) {
		//HttpServletRequest request, GoodsForm goodsForm, Double price, int count
		System.out.println("excute");
		System.out.println(goodsForm != null ? goodsForm.getGoodsName() : "");
		System.out.println(price);
		System.out.println(count);
		return "/view/success.jsp";
	}

}
